package io.renren.modules.substation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.substation.entity.TInfoAreaInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * 监测区域信息表
 *
 * @author lan
 * @email sunlightcs@gmail.com
 * @date 2020-05-25 22:31:36
 */
public interface TInfoAreaInfoService extends IService<TInfoAreaInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveArea(TInfoAreaInfoEntity tInfoAreaInfo);

    /**
     * 获取areaType=0即只包含区域的区域列表
     */
    List<TInfoAreaInfoEntity> queryOnlyAreaList();

    List<TInfoAreaInfoEntity> getStationList();

    List<TInfoAreaInfoEntity> getAreaDevList();

    List<TInfoAreaInfoEntity> queryOnlyAreaStaList();

    List<TInfoAreaInfoEntity> listByUserPerms();

    TInfoAreaInfoEntity getAreaInfoUserPerms(Long areaId);

    void removeByIdAndRmoveDevInfo(Long[] areaIds, Long userId);

    List<TInfoAreaInfoEntity> getAreaList();

    String getSubAreaList(Long areaId);

    Map<Long, String> getAreaNameMap();

    Map<Long, String> getAreaSubAreaMap();

    String getAreaSubAreaInfo(Long areaId);

    List<TInfoAreaInfoEntity> selectSubAreaById(Long areaId);
}
